<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <table class="table table-striped table-bordered">
        <tbody>
            <tr>
                <td colspan="6" class="text-center"><strong><h3>{:__('Basic information')}</h3></strong></td>
            </tr>
            <tr>
                <td class="text-center" width="100">{:__('User.nickname')}</td>
                <td style="word-break: break-all;">{$row.user.nickname|htmlentities|default='-'}</td>
                <td class="text-center" width="100">{:__('User.username')}</td>
                <td style="word-break: break-all;">{$row.user.username|htmlentities|default='-'}</td>
                <td colspan="2" rowspan="3" class="text-center">
                    <div style="margin: auto;">
                        <a href="javascript:;">
                            <img class="img-lg img-center" src="{$row.user.avatar|htmlentities|default='/assets/img/avatar.png'}" alt="">
                        </a>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="text-center">{:__('User.email')}</td>
                <td style="word-break: break-all;">{$row.user.email|htmlentities|default='-'}</td>
                <td class="text-center">{:__('User.birthday')}</td>
                <td style="word-break: break-all;">{$row.user.birthday|htmlentities|default='-'}</td>
            </tr>
            <tr>
                <td class="text-center">{:__('User.prevtime')}</td>
                <td style="word-break: break-all;">{$row.user.prevtime_text|htmlentities|default='-'}</td>
                <td class="text-center">{:__('User.successions')}</td>
                <td style="word-break: break-all;">{$row.user.successions|htmlentities|default='-'}</td>
            </tr>
            <tr>
                <td class="text-center">{:__('User.maxsuccessions')}</td>
                <td style="word-break: break-all;">{$row.user.maxsuccessions|htmlentities|default='-'}</td>
                <td class="text-center">{:__('User.loginip')}</td>
                <td style="word-break: break-all;">{$row.user.loginip|htmlentities|default='-'}</td>
                <td class="text-center">{:__('User.createtime')}</td>
                <td style="word-break: break-all;">{$row.user.createtime_text|htmlentities|default='-'}</td>
            </tr>
            <td colspan="6" class="text-center"><strong><h3>{:__('Registration information')}</h3></strong></td>
            <tr>
                <td class="text-center">{:__('Name')}</td>
                <td style="word-break: break-all;">{$row.name|htmlentities}</td>
                <td class="text-center">{:__('Mobile')}</td>
                <td style="word-break: break-all;">{$row.mobile|htmlentities}</td>
                <td class="text-center">{:__('Region.name')}</td>
                <td style="word-break: break-all;">
                    {if $auth->isSuperAdmin()}
                        <input id="c-region_id" min="0" data-source="region/index" class="form-control selectpage" name="row[region_id]" type="text" value="{$row.region_id|htmlentities}">
                    {else /}
                        {$row.region.name|htmlentities}
                    {/if}
                </td>
            </tr>
            <tr>
                <td class="text-center">{:__('Address')}</td>
                <td style="word-break: break-all;" colspan="5">{$row.address|htmlentities}</td>
            </tr>
            <tr>
                <td class="text-center">{:__('Idcard')}</td>
                <td style="word-break: break-all;">{$row.idcard|htmlentities}</td>
                <td colspan="4" class="text-center">
                    <img class="img-lg img-center" src="{$row.positive|htmlentities}" alt="">
                    <img class="img-lg img-center" src="{$row.back|htmlentities}" alt="">
                </td>
            </tr>
            <tr>
                <td class="text-center">{:__('Remarks')}</td>
                <td style="word-break: break-all;" colspan="5">{$row.remarks|htmlentities}</td>
            </tr>
            <tr>
                <td class="text-center">{:__('Audit_state')}</td>
                <td style="word-break: break-all;" colspan="3">
                    {:Form::radios('row[audit_state]',$auditStateList,$row.audit_state??'0')}
                </td>
                <td style="word-break: break-all;" colspan="2" rowspan="2">
                    <textarea id="c-reason" class="form-control" rows="5" name="row[reason]" placeholder="{:__('未通过原因')}" cols="50">{$row.reason|htmlentities}</textarea>
                </td>
            </tr>
            <tr>
                <td class="text-center">{:__('Status')}</td>
                <td colspan="3">
                    {:Form::radios('row[status]',$statusList,$row.status??'0')}
                </td>
            </tr>
        </tbody>
    </table>
    <div class="hide layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </div>
</form>